﻿using SqlPerfomance.V2.DAL;
using SqlPerfomance.V2.DomainModel.Enums;
using SqlPerfomance.V2.DomainModel.Models;
using SqlPerfomance.V2.Tests.Code;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlPerfomance.V2.Tests.TestsCommand
{
	public class NsTestCommand : BaseTestCommand<NestedSetTreeNode>
	{
		public NsTestCommand(ConnectionStrings connectionString)
            :base(connectionString)
        { }

		protected override RealDataRepository<NestedSetTreeNode> Repository
		{
			get { return new NestedSetTreeRepository(); }
		}

		protected override ISqlTestOperation Tests
		{
			get { return new NsTests(_connectionString, _tableName); }
		}

		protected override EnumHierarchyTestType EnumHierarchyTestType
		{
			get { return EnumHierarchyTestType.NestedSet; }
		}
	}
}
